package ${daoImpPackage};

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Repository;
import com.jd.common.dao.impl.BaseDaoImpl;
import ${entityPackage}.${className};
import ${daoPackage}.${className}Dao;

 /**
 * 描述：</b>${codeName}<br>
 * @author：系统生成
 * @version:1.0
 */
@Repository("${lowerName}Dao")
public class ${className}DaoImpl extends BaseDaoImpl implements ${className}Dao {
	@SuppressWarnings("unused")
	private final static Logger log= LoggerFactory.getLogger(${className}DaoImpl.class);
	
	<#if columnKeyParam !="">
	@Override
	public ${className} get(${columnKeyParam}){
		${className} ${lowerName} = new ${className}();
		<#list columnKeyDatas as item>
		${lowerName}.set${item.domainPropertyName?cap_first}(${item.domainPropertyName});
		</#list>
		return (${className})get(${lowerName});
	}
	</#if>
	
	<#if columnKeyParam !="">
	@Override
	public int delete(${columnKeyParam}){
		${className} ${lowerName} = new ${className}();
		<#list columnKeyDatas as item>
		${lowerName}.set${item.domainPropertyName?cap_first}(${item.domainPropertyName});
		</#list>
		return delete(${lowerName});
	}
	</#if>
	
	/*user customize code start*/
${userCustomCode}
	/*user customize code end*/
}
